package com.achobeta.recruitment.model;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 马拉圈
 * Date: 2023-10-26
 * Time: 17:01
 */
@Component
public class State {
    private static final List<String> stateList = new ArrayList<String>(){{
        this.add("待筛选");
        this.add("筛选通过");
        this.add("待筛选");
        this.add("筛选不通过");
        this.add("待安排初试");
        this.add("待初试");
        this.add("初试不通过");
        this.add("初试通过");
        this.add("待复试");
        this.add("待安排复试");
        this.add("复试不通过");
        this.add("复试通过");
        this.add("待筛选");
        this.add("待终试");
        this.add("待安排终试");
        this.add("终试通过");
        this.add("终试不通过");
        this.add("待处理");
        this.add("挂起");
        this.add("草稿");
    }};

    public String get(int index) {
        if(index < 0 || index >= stateList.size()) {
            return null;
        }
        return stateList.get(index);
    }

    public List<String> getStateList() {
        return stateList;
    }
}
